from rest_framework.viewsets import ModelViewSet
from goods.models import SPUSpecification
from meiduo_admin.spec.spec_serializers import SPUSpecSerializer
from meiduo_admin.user.my_pagination import MyNumberPagination


class SPUSpecsViewSet(ModelViewSet):
    pagination_class = MyNumberPagination
    queryset = SPUSpecification.objects.all()
    serializer_class = SPUSpecSerializer